<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="com.tangdi.production.mpapp.utils.WebPayServletUtil" %>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ page language="java" import="com.tangdi.production.mpapp.constants.*"
	%>
<%@ page import="java.text.*"  %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("on_back", "1");
	
	String orderNo = request.getParameter("orderNo");
	String orderType = request.getParameter("orderType");
	
	
	WebPayServletUtil payUtil = new WebPayServletUtil();
	//out.write(basePath);
	boolean ok = payUtil.validation(request,response);
	if(!ok){
		payUtil.toLoginPage(request, response);
	}
	request.setAttribute("title","用户中心");
%>

<!DOCTYPE html>
<html lang="zh">
<base href="<%=basePath%>">
<head>
<title>订单详情</title>

			<%
				out.write("<script type=\"text/javascript\">");
				out.write("var orderNo='" + orderNo + "';");	
				out.write("var orderType='" + orderType + "';");			
				out.write("</script>");
			%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>

<link rel="stylesheet" href="ace_v1.3/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
<link rel="stylesheet" href="css/webpay/bootstrap2.css" />
<link href="css/webpay/common.css" rel="stylesheet" type="text/css" /> 
<link rel="stylesheet" href="css/webpay/core.1.0.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/bootstrap.css" />
			
<link rel="stylesheet" href="ace_v1.3/assets/css/ace-fonts.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/font-awesome.css" />
<link rel="stylesheet" href="css/dialog.css" />
<link rel="stylesheet" href="ace_v1.3/assets/css/chosen.css" />

<script type="text/javascript" src="js/jquery-1.7.1.min.js" ></script>
<script type="text/javascript" src="js/core-1.0.js" ></script>
<script type="text/javascript" src="js/webpay/base.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/core/utils.js" charset="UTF-8"></script>


<script type="text/javascript">


</script>

<script type="text/javascript" src="js/webpay/list_info.js" charset="UTF-8"></script>
<script type="text/javascript">
//	getOrderInfo();// 初始化订单信息
</script>


<!--[if lte IE 9]>
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

<!--[if lte IE 9]>
		  <link rel="stylesheet" href="ace_v1.3/assets/css/ace-ie.css" />
		<![endif]-->



<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>
		<script src="ace_v1.3/assets/js/html5shiv.js"></script>
		<script src="ace_v1.3/assets/js/respond.js"></script>
		<![endif]-->

<jsp:include page="../plug/head-include.jsp" />
<style type="text/css">
</style>
</head>
<body >
<!-- #section:basics/navbar.layout -->
<jsp:include page="../plug/title.jsp" />

	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">

		<!-- #section:basics/sidebar -->
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<!-- #section:basics/content.breadcrumbs -->
				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<!-- <div class="page-header">
						<h1>
							Form Elements <small> <i
								class="ace-icon fa fa-angle-double-right"></i> Common form
								elements and layouts
							</small>
						</h1>
					</div>
					 -->
					<!-- /.page-header -->
					<div class="row">
						<div class="col-sm-8 col-xs-12 col-sm-offset-2 orderBox prdOrdBox" style="display:none">
							<!-- PAGE CONTENT BEGINS -->

							<table id="sample-table-1"
								class="table table-striped table-bordered table-hover orderPayTable  " >
								<tbody>
								    <tr>
								    
										<td colspan="2" class="td-label">订单详情</td>
										
									</tr>
									<tr>
									    <td class="td-label">交易类型</td>
										<td class="td-label" valueOf="{ordType}" init-format="orderTypeList['{value}']"></td>
										
									</tr>
									<tr>
										<td class="td-label">商品名称</td>
										<td class="td-data" valueOf="{goodsName}"></td>
									</tr>
									<tr>
										<td class="td-label">订单金额</td>
										<td class="td-data" valueOf="{ordamt} 元" init-format="cent2Yuan({value})"></td>
									</tr>
									
									<tr>
										<td class="td-label">订单状态</td>
										<td class="td-data" valueOf="{ordstatus}" init-format="prdOrdStatusList['{value}']" ></td>
									</tr>
									<!-- <tr>
										<td class="td-label">商户号</td>
										<td class="td-data" valueOf="{custId}"></td>
									</tr> -->
									<tr>
										<td class="td-label">订单号</td>
										<td class="td-data" valueOf="{prdordno}"></td>
									</tr>
									
									<tr>
										<td class="td-label">交易说明</td>
										<td class="td-data" valueOf="{orderDesc}" ></td>
									</tr>
									<tr>
										<td class="td-label">交易时间</td>
										<td class="td-data" style="padding-right: 0px" valueOf="{ordtime}" init-format="dateFormat('{value}')"></td>
									</tr>
									
							</table>
							
						</div>
						<div class="col-sm-8 col-xs-12 col-sm-offset-2 orderBox casOrdBox" style="display:none">
							<!-- PAGE CONTENT BEGINS -->

							<table id="sample-table-2"
								class="table table-striped table-bordered table-hover orderPayTable " >
								<tbody>
								    <tr>
										<td colspan="2" class="td-label">订单详情</td>
										
									</tr>
									<tr>
									    <td class="td-label">交易类型</td>
										<td class="td-label" valueOf="{ordType}" init-format="orderTypeList['{value}']"></td>
										
									</tr>
									<tr>
										<td class="td-label">提现金额</td>
										<td class="td-data" valueOf="{ordamt} 元" init-format="cent2Yuan({value})"></td>
									</tr>
									<tr>
										<td class="td-label">订单状态</td>
										<td class="td-data" valueOf="{ordstatus}" init-format="casOrdStatusList['{value}']" ></td>
									</tr>
									<tr>
										<td class="td-label">订单号</td>
										<td class="td-data" valueOf="{prdordno}"></td>
									</tr>
									<tr>
										<td class="td-label">交易时间</td>
										<td class="td-data" style="padding-right: 0px" valueOf="{ordtime}" init-format="dateFormat('{value}')"></td>
									</tr>
							</table>
						</div>
						<!-- /.col -->
					</div>

					<div
						class="clearfix menu-btn-box col-sm-8 col-xs-12 col-sm-offset-2">
						<button class="btn btn-info btn-lg btn-block" type="button"
							onclick="reLoad()">
							重新查看
						</button>
					</div>
					<br/>
					<br/>
					<div
						class="clearfix menu-btn-box col-sm-8 col-xs-12 col-sm-offset-2">
						<button class="btn btn-lg btn-warning btn-block" type="button" style="background-color: #f0ad4e !important;border-color: #f0ad4e !important;display: none;"
							id="casBtn">
							发起提现
						</button>
					</div>
					<!-- <div class="order-desc">
						该订单是由口袋支付商户向您发的收款操作，付款成功后将从您的银行卡内扣除相应金额并转入商户账户， 如果您正准备付款，请确保您知晓该笔交易，口袋支付工作人员不会以任何形式任何理由向您索取短信验证码及内容，切勿向来电陌生人泄露短信内容，谨防上当受骗，如有疑问欢迎您主动拨打口袋支付官方服务热线 400-999-4048  咨询或举报
					</div> -->
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->

	</div>
	<!-- /.main-container -->

<link rel="stylesheet" type="text/css" href="css/dialog.css" />
<script type="text/javascript" src="js/webpay/on-menu.js" charset="UTF-8"></script>
	 <!-- <script type="text/javascript" src="js/webpay/dial.js" charset="UTF-8"></script>
 -->	<!-- basic scripts -->
</body>
</html>
